﻿
<TableGroup MinHeight=400>
    <Table TItem="SaleOrderItemModel" ShowLoading="true" Height="300"
           ShowToolbar="true" ShowDefaultButtons="true"
           ShowExtendButtons="true"
           OnSaveAsync="OnSaveAsync" OnDeleteAsync="OnDeleteAsync"
           ShowSearch="false" ShowAdvancedSearch="false" ShowRefresh="false" IsStriped="true" IsBordered="true" ShowLineNo="true"
           IsPagination="true" OnQueryAsync="@OnQueryAsync">
        <TableColumns>
            <TableColumn @bind-Field="@context.ProductName" Readonly="true" />
            <TableColumn @bind-Field="@context.Quantity" />
            <TableColumn @bind-Field="@context.Price" Editable="false"></TableColumn>
            <TableColumn @bind-Field="@context.State" Editable="false"></TableColumn>
            <TableColumn @bind-Field="@context.CreateDate" Editable="false" FormatString="yyyy-MM-dd HH:mm:ss" Width="150" />
            <TableColumn @bind-Field="@context.CreateByName" Editable="false" />
            @*<TableColumn @bind-Field="@context.UpdateBy" Editable="false" ></TableColumn>
            <TableColumn @bind-Field="@context.UpdateDate" Editable="false" FormatString="yyyy-MM-dd HH:mm:ss" ></TableColumn>*@
        </TableColumns>
        <RowButtonTemplate Context="item">
            @*<TableCellButtonItem IsAsync="true" Text="编辑" Item="item" OnClickWithoutRenderItem="OpenEdit"></TableCellButtonItem>*@
        </RowButtonTemplate>
    </Table>
</TableGroup>
